package com.gjm.spring.demo;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @RequestMapping("/hello")
    public String hello() {//方法名可以与上面注解中的不一样
//        int a = 1 / 0;
        return "Hello Spring Boot";
    }
}
